<?php
class Validation{
	public static function email($email){
		return preg_match("/^([a-zA-Z0-9])+([\.a-zA-Z0-9_-])*@([a-zA-Z0-9_-])+(\.[a-zA-Z0-9_-]+)*\.([a-zA-Z]{2,6})$/", $email);
	}
	
	public static function password($password){
		return preg_match( '/[^0-9a-zA-Z]/', $password);
	}
	
	public static function string($string){
		return preg_match( '/[^0-9a-zA-Z]/', $string);
	}
}
?>
